<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="../favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/sc/js/page.js"></script>
    <style>
       .checkbox-inline input[type=checkbox],.radio-inline input[type=radio] {
           margin-top: 4px;
      }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color">所属经销商核销状况查询</h1>
    </div>
    <!-- 标题 -->
    <div>
   <form action="#" method="post" id="form_check" class="formpage">
     <input type="hidden" value='{$page}' name="page" id="page-go"/>
                      <input type="hidden" value='{$list}' name="list" id="list-go"/>
      <table class="row-margin-top tab-content table-bordered table text-left" border="1">
          <tr>
            <td style="min-width: 140px" class="text-right"><label for="" class="form-label">经销商编号：</label></td>
            <td><input type="text" class="form-control" name="no" value="{$data.no}"></td>
             <td style="min-width: 140px" class="text-right"><label for="" class="form-label">经销商名称：</label></td>
            <td><input type="text" class="form-control" name="jxs" value="{$data.jxs}"></td>
             <td style="min-width: 140px" class="text-right"><label for="" class="form-label">分区：</label></td>
            <td><input type="text" class="form-control" name="fenqu" value="{$data.fenqu}"></td>
             </tr>
             <tr>
              <td style="min-width: 140px" class="text-right"><label for="" class="form-label">省份：</label></td>
            <td><input type="text" class="form-control" name="sheng" value="{$data.sheng}"></td>
             <td style="min-width: 140px" class="text-right"><label for="" class="form-label">城市：</label></td>
            <td><input type="text" class="form-control" name="shi" value="{$data.shi}"></td>
            <td colspan="2">
                <button class="btn btn-info btn-sm query" type="button" id="check">查询</button>
                    <button class="btn btn-info btn-sm emptyIf" type="button" id="clear_check">清空查询条件</button>
            </td>
             </tr>
      </table>
      <table class="table row-margin-top table-bordered table-hover text-center bud_hei">
          <tr class="info">
            <th rowspan="2" class="text-center">序号</th>
            <th rowspan="2" class="text-center">经销商编号</th>
            <th rowspan="2" class="text-center">经销商名称</th>
            <th rowspan="2" class="text-center">分区</th>
            <th rowspan="2" class="text-center">省份</th>
            <th rowspan="2" class="text-center">城市</th>
            <th rowspan="2" class="text-center">已批准</th>
            <th rowspan="2" class="text-center">已核销</th>
            <th colspan="2" class="text-center">未核销</th>
            <th rowspan="2" class="text-center">不予核销</th>
            <th rowspan="2" class="text-center">对账单</th>
          </tr>
          <tr class="info">
			<th class="text-center">申请中</th>
			<th class="text-center">未申请</th>
          </tr>
          {volist name="jxss" id="j"}
            <tr>
              <td>{$i}</td>
              <td>{$j.sn}</td>
              <td>{$j.title}</td>
              <td>{$j.fenqu}</td>
              <td>{$j.sheng}</td>
              <td>{$j.city}</td>
              <td class="ObjectNum allowed text-right">{$j.pizhun}</td>
              <td class=" ObjectNum vorified text-right">{$j.yihe}</td>
              <td class="ObjectNum applying text-right">{$j.sq}</td>
              <td class="ObjectNum wsq text-right">{$j.wsq}</td>
            <td class="ObjectNum text-right buhe">{$j.buhe}</td>
            <td><a href="duizhangdan.html">查看</a></td>
            </tr>
          {/volist}
          <tfoot>
			  <tr class="trTotal text-right">
           			<td colspan="6">合计:</td>
           			<td class="ObjectNum" id="pz">696641</td>
           			<td class="ObjectNum" id="yh">346570</td>
           			<td class="ObjectNum" id="ap">900</td>
           			<td class="ObjectNum" id="wsq">349171</td>
           			<td class="ObjectNum" id="buhe">0</td>
           			<td></td>
          		</tr>
          </tfoot>
      </table>
       <h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            <script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                        </script>
                        每页显示
           <select id="pagesize">
                        <option value='10' {if condition="$list eq 10"}selected{/if}>10条</option>
                        <option value='20'{if condition="$list eq 20"}selected{/if}>20条</option>
                        <option value='40'{if condition="$list eq 40"}selected{/if}>40条</option>

            </select>
        </h5>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
          $(document).ready(function(){
            var buhe=0;
            $(".buhe").each(function(){
              buhe+=parseFloat($(this).html())
            })
            $("#buhe").html(buhe.toFixed(2))

            var wsq=0;
            $(".wsq").each(function(){
              wsq+=parseFloat($(this).html())
            })
            $("#wsq").html(wsq.toFixed(2))

            var ap=0;
            $(".applying").each(function(){
              ap+=parseFloat($(this).html())
            })
            $("#ap").html(ap.toFixed(2))

            var pizhun=0;
            $(".allowed").each(function(){
              pizhun+=parseFloat($(this).html())
            })
            $("#pz").html(pizhun.toFixed(2))

            var yihe=0;
            $(".vorified").each(function(){
              yihe+=parseFloat($(this).html())
            })
            $("#yh").html(yihe.toFixed(2))
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
/*
          var $vorified =$(".vorified");
          var $applying =$(".applying");
          var $allowed  =$(".allowed");
          var $vorifiedAhref ="vorifiedPage.html";
          var $applyingAhref ="applyingPage.html";
          toNumA($vorified,$vorifiedAhref);
          toNumA($applying,$applyingAhref);
          toNumA($allowed,$vorifiedAhref);
*/
         
        $("#check").click(function(){
              
             $(".formpage").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            
             $(".formpage").submit();
        })
          })
    </script>
</body>

</html>
